If you do something at the drop of a hat, you do it without really thinking or hesitating, as soon as the opportunity arises. A skittish horse might rear up and bolt at the drop of a hat.
In the 19th century, dropping a hat was a universal signal to begin something, such as a horse race or a boxing match. The official would raise their hat high and let it go. As soon as it touched the ground, the action began. Today, the phrase at the drop of a hat often describes how someone is ready to act instantly, without needing a formal invitation or much preparation. If your best friend is always ready and willing to drop everything and embark on an impromptu road trip, she's ready to go at the drop of a hat.